<?php


namespace App\Study\Patterns\Container;


class Traveller
{
    protected $trafficTool;

    /**
     * Traveller constructor.
     * @param $trafficTool
     */
    public function __construct(Visit $trafficTool)
    {
        $this->trafficTool = $trafficTool;
    }


    public function visitTibet()
    {
        $this->trafficTool->go();
    }
}
